package demo3;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<Character> list = new ArrayList<>();

        String s1 = "welcome to bit";
        String s2 = "come";

        int i = 0;
        while (i < s1.length()) {
            char ch = s1.charAt(i);
            if (!(s2.contains(ch + ""))) {
                list.add(ch);
            }
            i++;
        }
        for (int j = 0; j < list.size(); j++) {
            System.out.print(list.get(j));
        }
    }
}
